using System;

namespace Voodoo.Sauce.Internal.SDKs
{
	[Serializable]
	public class AdFormat
	{
		public string className;

		public string customData;

		public override bool Equals(object obj)
		{
			if (obj == null || GetType() != obj.GetType())
			{
				return false;
			}
			AdFormat adFormat = (AdFormat)obj;
			if ((className ?? "") != (adFormat.className ?? "") || (customData ?? "") != (adFormat.customData ?? ""))
			{
				return false;
			}
			return true;
		}

		public override int GetHashCode()
		{
			return (((className != null) ? className.GetHashCode() : 0) * 397) ^ ((customData != null) ? customData.GetHashCode() : 0);
		}

		public bool IsEmpty()
		{
			if (string.IsNullOrEmpty(className) && string.IsNullOrEmpty(customData))
			{
				return true;
			}
			return false;
		}
	}
}
